import http from '../method.js'

// 增加课程资源文件
export const saveCourseOtherFile = (params={}) => {
  return http().post('/course/auth/courseOtherFile/save', params)
}

export const courseOtherFileList = (params = {}) => {
  return http().post('/course/auth/courseOtherFile/list', params)
}

export const delCourseOtherFileList = (params = {}) => {
  return http().post('/course/auth/courseOtherFile/delete', params)
}
export const courseListByUserNo = (params = {}) => {
  return http().post('/course/auth/course/getCourseListByUserNo', params)
}

//未登陆
export const courseOtherFileListNoToken = (params = {}) => {
  return http().post('/course/api/courseOtherFile/list', params)
}

// 已登陆
export const courseOtherFileListHaveToken = (params={}, token) => {
  return http(token).post('/course/auth/courseOtherFile/list', params)
}


// 已登陆  答疑列表
export const answerDoubtList = (params={}, token) => {
  return http(token).post('/course/auth/AnswerDoubt/list', params)
}

// 已登陆  答疑查看回复详情
export const answerDoubtViewDetail = (params={}, token) => {
  return http(token).post('/course/auth/AnswerDoubt/viewDetail', params)
}

// 已登陆   答疑（由学员初始添疑问调用）
export const answerDoubtSaveTitleForStudent = (params={}, token) => {
  return http(token).post('/course/auth/AnswerDoubt/saveTitleForStudent', params)
}

// 已登陆  添加回复
export const answerDoubtSaveReply = (params={}, token) => {
  return http(token).post('/course/auth/AnswerDoubt/saveReply', params)
}
